package zh.codegym.task.task04.task0417;

/* 
是否有一对？
*/

import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        if(a == b && b == c){
            System.out.println(a + " " + b + " " + c);
        }else {
            if(a == b){
                System.out.println(a + " " + b);
            }else
            if(b == c){
                System.out.println(b + " " + c);
            }else
            if(a == c){
                System.out.println(a + " " + c);
            }else
            if(b == c){
                System.out.println(b + " " + c);
            }
        }


    }
}